package com.ruoyi.employee.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 部门对象 departments
 * 
 * @author ruoyi
 * @date 2025-03-01
 */
public class Departments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 部门编号 */
    @Excel(name = "部门编号")
    private String departmentsId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String departmentsName;

    /** 负责人 */
    @Excel(name = "负责人")
    private String principal;

    /** 手机 */
    @Excel(name = "手机")
    private String cellphone;

    /** 成立日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "成立日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date setTime;

    /** 撤销日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "撤销日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date repealTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDepartmentsId(String departmentsId) 
    {
        this.departmentsId = departmentsId;
    }

    public String getDepartmentsId() 
    {
        return departmentsId;
    }
    public void setDepartmentsName(String departmentsName) 
    {
        this.departmentsName = departmentsName;
    }

    public String getDepartmentsName() 
    {
        return departmentsName;
    }
    public void setPrincipal(String principal) 
    {
        this.principal = principal;
    }

    public String getPrincipal() 
    {
        return principal;
    }
    public void setCellphone(String cellphone) 
    {
        this.cellphone = cellphone;
    }

    public String getCellphone() 
    {
        return cellphone;
    }
    public void setSetTime(Date setTime) 
    {
        this.setTime = setTime;
    }

    public Date getSetTime() 
    {
        return setTime;
    }
    public void setRepealTime(Date repealTime) 
    {
        this.repealTime = repealTime;
    }

    public Date getRepealTime() 
    {
        return repealTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("departmentsId", getDepartmentsId())
            .append("departmentsName", getDepartmentsName())
            .append("principal", getPrincipal())
            .append("cellphone", getCellphone())
            .append("setTime", getSetTime())
            .append("repealTime", getRepealTime())
            .append("remark", getRemark())
            .toString();
    }
}
